/*
 * @version: 电子名片2.0
 * @Author: 冯健
 * @Date: 2020-11-24 11:30:24
 * @LastEditors: 冯健
 * @LastEditTime: 2020-12-10 18:54:01
 */
export const listHedar = [
  { label: '话题编号', prop: 'topicId' },
  { label: '话题标题', prop: 'topicTitle' },
  { label: '阅读量', prop: 'readingQuantity' },
  { label: '讨论量', prop: 'discussQuantity' },
  { label: '状态', prop: 'topicStatus', isTemplate: true },
  { label: '创建时间', prop: 'gmtCreate' },
  { label: '审核人', prop: 'authUserName' },
  { label: '审核时间', prop: 'authTime' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]
const stutas = [
  { value: '0', title: '标题待审核' },
  { value: '1', title: '标题已通过' },
  { value: '-1', title: '标题已禁用' },
  { value: '2', title: '内容待审核' },
  { value: '3', title: '内容已通过' },
  { value: '-2', title: '内容已拒绝' }
]
export const searchs = [
  { type: 'input', key: 'keyword', value: '', placeholder: '话题编号、话题标题' },
  { type: 'select', key: 'topicStatus', value: '', selectList: stutas, placeholder: '状态' }
]

export const editList = [
  { type: 'textarea', key: 'reason', label: '拒绝原因', placeholder: '请输入' }
]

export const editLists4 = [
  { type: 'input', key: 'topicTitle', label: '话题标题', placeholder: '请输入' },
  { type: 'input', key: 'takeaway', label: '话题导读', placeholder: '请输入' },
  { type: 'upload', key: 'topicPic', label: '话题封面' }
]

export const rules = {
  reason: { required: true, message: '请输入拒绝原因' }
}

export const textLists = [
  { type: 'txt', title: '话题标题: ', key: 'topicTitle', span: 24 },
  { type: 'txt', title: '话题导读: ', key: 'takeaway', span: 24 },
  { type: 'image', title: '话题封面: ', key: 'topicPic', span: 24, style: 'width: 40%;vertical-align: top;' }
]
